<?php if(!defined('IN_PISCES')){exit('Access Denied.');}?>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/jquery.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/jquery/form.js"></script>
<script language="javascript" src="{$this->data['baseurl']}js/utils.js"></script>
<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	document.location	= res.data.forward;
}else{
	//alert('出错了，请重新尝试！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div class="direct mb5">
您的位置：
<a href="{$this->data['baseurl']}">{$this->data['site']['site_name']}</a>
 > <a href="{url('Post', 'List')}">购物讨论</a>
 > 分享商品
</div>
 <div class="clear"></div>
<div class="w1000">
<div>
<form id="form" action="{url('Post','SaveProduct')}" method="post">
<table style="width:1000px; margin:10px auto; ">
	<tr style="width:990px; margin:10px auto; float:left;">
	<th style="width:100px;">商品网址：</td>
	<td ><input type="text" style="width:600px; height:20px;" name="content#url" size="80" {if $this->data['info']}value="{$this->data['info']['content']['url']}"{/if} /><span etype='error_info' class="error_info" id="content#url_info">&nbsp;我们目前只支持本站商品以及淘宝商品网址</span></td>
	</tr>
	<tr style="width:990px; margin:10px auto; float:left;">
	<th style="width:100px;">分享标题：</td>
	<td ><input type="text" style="width:600px; height:20px;" name="title" size="80" {if $this->data['info']}value="{$this->data['info']['title']}"{/if} /><span etype='error_info' class="error_info" id="title_info">&nbsp;留空将自动获取商品名称作为标题</span></td>
	</tr>
	<tr style="width:990px; margin:10px auto; float:left;">
	<th style="width:100px;">点评内容：</td>
	<td >
	<textarea name="content#content" id="txtcontent" style="width:600px;height:150px">
	{if $this->data['info']}{$this->data['info']['content']['content']}{/if}
	</textarea>
	<span etype='error_info' class="error_info" id="content#content_info"></span>
	</td>
	</tr>
	<tr style="width:990px; margin:10px auto; float:left;">
	<th style="width:100px;">添加标签：</td>
	<td >
	<input name="tag" style="width:600px; height:20px;" type="text" size="80" {if $this->data['info']}value="{$this->data['info']['tag']}"{/if} /><span etype='error_info' class="error_info" id="tag_info">&nbsp;&nbsp;多个标签之间用，分隔</span>
	</td>
	</tr>
	<tr style="width:990px; margin:10px 0 10px 50px; float:left;"><td></td><td ><input id="btnAjaxSubmit" type="image" value=""  src="{$this->data['baseurl']}images/btn_submit.jpg"/><input name="id" type="hidden" value="{$this->data['info']['id']}" /></td></tr>
</table>
</form>
</div>
</div>
 <div class="clear"></div>